package com.ywd.materials.admin.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * YWD
 * 2025/9/19
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.cloud.alicloud")
public class AliCloudProperties {

    private String accessKey;
    private String secretKey;
    private Oss oss;

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public Oss getOss() {
        return oss;
    }

    public void setOss(Oss oss) {
        this.oss = oss;
    }

    @Data
    public static class Oss {
        private String endpoint;
        private String bucket;
        private String host;
    }

}
